home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh
- if ! -f "$1" then
- echo ExamineTar\(Z\): I can only examine files! > /dev/console
- exit(-1)
- else if "$1" =~ *.tar.Z then
- ( echo It is a tarred and compressed directory with the following contents: ; zcat "$1" | tar tf - ) | open
- else if "$1" =~ *.tar then
- ( echo It is a tarred directory with the following contents: ; cat "$1" | tar tf - ) | open
- else
- echo ExamineTar\(Z\): You gave me a file with the wrong extension! > /dev/console
- exit(-1)
- endif
-